namespace System.Collections.Generic
{
    public static class ArrayExtension
    {
        public static List<T> ToList<T>(this T[] array)
        {
            return new List<T>(array);
        }

        public static T[] Clone<T>(this T[] array)
        {
            T[] result = new T[array.Length];
            Array.Copy(array, result, array.Length);
            return result;
        }
    }
}
